
/* File name	: eeprom.h
 * Project 		: BKIT MCR
 * Version 		: 1.0
 * Creation Date: 07/07/2010
 * Tabsize		: 4
 * Author  		: BKIT4U                   
 * Copyright	: (c) 2010 BKIT HARDWARE CLUB - www.bkit4u.com
 * License		: Free.
 * Comments		: 
 * 
 */

#ifndef __EEPROM_H__
#define __EEPROM_H__

/*====================================*/
/* Constant setting           		  */
/*====================================*/
#define DISABLE_INT  	0x7F
#define ENABLE_INT	 	0x80
#define	V_WHITE_POS		0
#define	V_BLACK_POS		8
#define	V_COMPARE_POS	16
#define HANDLE_CENTER_POS 32

/*====================================*/
/* Prototype declaration        	  */
/*====================================*/
void eeprom_init();
void eeprom_writebyte(	unsigned int uiAddress, 
					  	unsigned char data);
void eeprom_writestr(	unsigned int uiAddress_start, 
					 	unsigned char *ucData_buff, 
						unsigned char ucData_len);

unsigned char eeprom_readbyte(unsigned int uiAddress);
void eeprom_readstr(	unsigned int uiAddress_start, 
						unsigned char *ucData_buff, 
						unsigned char ucData_len);

#endif

/****************END FILE**************/

